package com.application.intercept;

import com.jfinal.aop.Invocation;
import org.apache.log4j.Logger;

/**
 * 拦截器
 */
public class ProductStatusChangedInterceptor extends BaseInterceptor {

    private static Logger log = Logger.getLogger(ProductStatusChangedInterceptor.class);

    protected void handler(Invocation invo) {
      /*  BaseController ct = (BaseController) invo.getController();
        String jsonText = ((JsonRender) ct.getRender()).getJsonText();
        Map<String, Object> map = (Map<String, Object>) JSON.parse(jsonText);
        if ("200".equals(map.get("status").toString())) {
            if (ct.getPara("pre_time1") != null && ct.getPara("pre_time2") != null) {
                String s =  ct.getPara("status");
                if(StrKit.notBlank(s)){
                    if(Integer.parseInt(s) == Product.STATUS_PRE) {
                        Integer pid = ct.getParaToInt("id");
                        if (pid != null && pid != 0)
                            new PreProductJob().start(pid);
                    }
                }

            }

        }*/
    }

}
